I
@Lazar-Demin Unfortunately, both ways you've suggested don't work to me, I don't have ethernet port, I use my custom shield, and I was trying to flash it via USB, but according to google I have old U-Boot 1.1.3 and Onion Omega2 UBoot Version: 4.3.0.3 and when I try to flash fw from the usb I get timeout error (found that it was solved in later versions)
I use the next steps to flash my omega2:
start command line tool
attach usb and copy openwrt-initramfs image to 0x81000000
erase linux
bootm 0x81000000
so when the device is running I connect to it via ssh and write omega2-0.3.3-b256 fw
5. cat omega2-v0.3.3-b256.bin | ssh root@192.168.1.1 mtd write - firmware
These steps are ok for 0.1.10-b160 and openwrt-22.05.02 firmwares, but not for the latests
openwrt is ok for general purposes (wifi connection, msc, etc), but it has a problems with interfaces, such as spi, i2c, gpio in general, so then omega2-0.1.10 is ok for that